import { defineComponent, type PropType } from 'vue'
import c from './assets/index.module.less'

export default defineComponent({
  name: 'BoxHeader',
  props: {
    title: {
      type: String as PropType<string>,
      default: '事件告警'
    }
  },
  setup(props, { slots }) {
    return () => (
      <section>
        <div class={c.boxHeaderTitle}>{props.title}</div>
        <div>{slots.default && slots.default()}</div>
      </section>
    )
  }
})
